rolesystem.roles.auction
Class Price
java.lang.Object
rolesystem.roles.auction.Price
- All Implemented Interfaces:
- java.io.Serializable
public class Price
- extends java.lang.Object
- implements java.io.Serializable
This class represents a price.
Instances of this class are constant, once created they
cannot be changed.
- See Also:
- Serialized Form
|
Constructor Summary |
Price(double amount,
java.lang.String currency)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Price
public Price(double amount,
java.lang.String currency)
- Parameters:
amount - Amount.currency - Currency.
getAmount
public double getAmount()
- Returns the amount.
- Returns:
- The amount.
getCurrency
public java.lang.String getCurrency()
- Returns the currency.
- Returns:
- The currency.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object